
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserGroupRequest struct {

	GroupName string `json:"group_name" form:"group_name"`

}

func (r *UserGroupRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserGroupRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"group_name": "required",

	}
}

func (r *UserGroupRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserGroupRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserGroupRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
